package com.homwee.factory.util;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.WindowManager;

import android.widget.ListView;
import android.widget.RelativeLayout;

public class ListViewItemView extends RelativeLayout {
	private Context mContext;

	public ListViewItemView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		mContext = context;
	}

	public ListViewItemView(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
	}

	public ListViewItemView(Context context) {
		super(context);
		mContext = context;
		setLayoutParams(new ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT, getSize()));
		setFocusable(true);
		setClickable(true);
		setEnabled(true);
	}

	public int getSize() {
		WindowManager wm = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
		int height = wm.getDefaultDisplay().getHeight();
		return 57;//78;
	}

}
